// pages/find_info/index.js
var t = getApp(),
  s = t.requirejs("wxParse/wxParse"),
  core = t.requirejs("core");
Page({
  data: {
    route: "",
    show: false
  },
 
  onLoad: function (options) {
  
    var a = this;
    a.setData({
      id: options.id
    })


  },
  onShow: function () {
    var a = this,
      id = a.data.id;
    //案列详情
    core.get('Card/zhaopin',{id:id},function(t){
      if(t.code==0){
        s.wxParse("wxParseData", "html", t.info.content, a, "0");
        a.setData({
          info:t.info,
          show:true
        })
      }else{
        core.warning('该招聘不存在');
        setTimeout(function () {
          core.jump('', 5);
        }, 1e3);
      }
    })
  },
  phone:function(e){
      core.phone(e);
  },
  /**
* 下拉刷新
*/
  onPullDownRefresh: function () {
    this.onShow();
    wx.stopPullDownRefresh();
  },
  //分享
  onShareAppMessage: function () {

  },
})